package sh.wn36.vehiclemanage.entity.qz_entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */


@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="用户管理单独装的类", description="")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")

    private Integer id;

    @ApiModelProperty(value = "登录名")
    private String lname;

    @ApiModelProperty(value = "密码")
    private String lpass;

    @ApiModelProperty(value = "真实姓名")
    private String rname;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "部门")
    private String department;

    @ApiModelProperty(value = "职位")
    private String position;
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "身份证")
    private String card;
    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "入职日期")
    private Date entrytime;

    @ApiModelProperty(value = "是否停用1,0")
    private String isdisable;

    private Integer version;
//    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date gmtModified;


}
